package fr.udata.client;

import com.google.gwt.event.shared.SimpleEventBus;
import com.google.gwt.place.shared.PlaceController;
import com.google.web.bindery.event.shared.EventBus;

import fr.udata.client.view.SigninView;
import fr.udata.client.view.SignupView;
import fr.udata.client.view.impl.SigninViewImpl;
import fr.udata.client.view.impl.SignupViewImpl;

public class ClientFactoryImpl implements ClientFactory {
	private final EventBus eventBus = new SimpleEventBus();
	private final PlaceController placeController = new PlaceController(
			eventBus);
	private final SigninView signinView = new SigninViewImpl();
	private final SignupView signupView = new SignupViewImpl();

	@Override
	public EventBus getEventBus() {
		return eventBus;
	}

	@Override
	public PlaceController getPlaceController() {

		return placeController;
	}

	@Override
	public SigninView getSigninView() {
		return signinView;
	}

	@Override
	public SignupView getSignupView() {
		return signupView;
	}

}